﻿using System;

namespace 数据BUG监控
{
    /// <summary>
    /// 数据监控类
    /// </summary>
    public class DataControl
    {

        /// <summary>
        /// 唯一标识
        /// </summary>
        public Guid KeyId { get; set; }

        /// <summary>
        /// 需要监控的业务
        /// </summary>
        public string SQL { get; set; }

        /// <summary>
        /// 最后运行时间
        /// </summary>
        public DateTime LastRunTime { get; set; }

        /// <summary>
        /// 运行间隔单位（秒）
        /// </summary>
        public int RunInterval { get; set; }

        /// <summary>
        /// 监控阈值
        /// 错误数据的条数临界值
        /// </summary>
        public int Threshold { get; set; }

        /// <summary>
        /// 业务描述
        /// </summary>
        public string Desc { get; set; }

        /// <summary>
        /// 监控类型
        /// </summary>
        public Guid TypeKeyId { get; set; }

        /// <summary>
        /// 逻辑删除标识
        /// </summary>
        public bool IsDelete { get; set; }

    }
}
